package com.ruoyi.project.system.visitor.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import com.ruoyi.project.system.member.domain.Member;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 访客对象 jiaqin_visitor
 *
 * @author LCL
 * @date 2021-09-28
 */
public class JiaqinVisitor extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String memberId;

    /** 被访问用户ID */
    @Excel(name = "被访问用户ID")
    private String visitorMemberId;

    /** 访问时间 */
    @Excel(name = "访问时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date visitorAt;

    /** 访问退出时间 */
    @Excel(name = "访问退出时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date visitorOutAt;

    /** 访问类型（0-个人，1-企业） */
    @Excel(name = "访问类型", readConverterExp = "0=-个人，1-企业")
    private Integer visitorType;

    /** 访问次数 */
    private Integer num;

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    /** 删除标记（0-正常，1-删除） */
    private Integer delFlag;

    private Member member;

    public Member getMember() {
        return member;
    }
    public void setMember(Member member) {
        this.member = member;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setMemberId(String memberId)
    {
        this.memberId = memberId;
    }

    public String getMemberId()
    {
        return memberId;
    }
    public void setVisitorMemberId(String visitorMemberId)
    {
        this.visitorMemberId = visitorMemberId;
    }

    public String getVisitorMemberId()
    {
        return visitorMemberId;
    }
    public void setVisitorAt(Date visitorAt)
    {
        this.visitorAt = visitorAt;
    }

    public Date getVisitorAt()
    {
        return visitorAt;
    }
    public void setVisitorOutAt(Date visitorOutAt)
    {
        this.visitorOutAt = visitorOutAt;
    }

    public Date getVisitorOutAt()
    {
        return visitorOutAt;
    }
    public void setVisitorType(Integer visitorType)
    {
        this.visitorType = visitorType;
    }

    public Integer getVisitorType()
    {
        return visitorType;
    }
    public void setDelFlag(Integer delFlag)
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberId", getMemberId())
            .append("visitorMemberId", getVisitorMemberId())
            .append("visitorAt", getVisitorAt())
            .append("visitorOutAt", getVisitorOutAt())
            .append("visitorType", getVisitorType())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
